#include <stdio.h>

int main(int argc, char const *argv[])
{
    int a = 15, b = 9, c;
    double x = 15, y = 8, z;
    c = a + b;           //计算a+b的值
    printf("c=%d\n", c); //输出c的值
    c = a - b;           //计算a-b的值
    printf("c=%d\n", c); //输出c的值
    c = a * b;           //计算a*b的值
    printf("c=%d\n", c); //输出c的值
    c = a / b;           //计算a/b的值
    printf("c=%d\n", c); //输出c的值
    c = a % b;           //计算a%b的值
    printf("c=%d\n", c); //输出c的值
    z = x + y;           //计算x+y的值
    printf("z=%f\n", z); //输出z的值
    z = x - y;           //计算x-y的值
    printf("z=%f\n", z); //输出z的值
    z = x * y;           //计算x*y的值
    printf("z=%f\n", z); //输出z的值
    z = x / y;           //计算x/y的值
    printf("z=%f\n", z); //输出z的值
    return 0;
}
